/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.user.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 财务记录
 *
 * @author pigx code generator
 * @date 2023-02-02 16:58:30
 */
@Data
@TableName("finance_record")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "财务记录")
public class FinanceRecord extends Model<FinanceRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键")
    private Long id;

    /**
     * 分配类型  0 保证金 1 平台  2 市场
     */
    @ApiModelProperty(value="分配类型  0 保证金 1 平台  2 市场")
    private String type;

    /**
     * 分配数量
     */
    @ApiModelProperty(value="分配数量")
    private BigDecimal quantity;

    /**
     * 分配状态  0 进行中  1 已完成 2 已失败
     */
    @ApiModelProperty(value="分配状态  0 进行中  1 已完成 2 已失败")
    private String status;

	/**
	 * 链
	 */
	@ApiModelProperty(value="链")
	private String chain;

    /**
     * 交易哈希
     */
    @ApiModelProperty(value="交易哈希")
    private String hash;

    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createBy;

    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(value="修改时间")
    private LocalDateTime updateTime;

	/**
	 * 燃料包类型
	 */
	private String fuelType;

}
